//
//  WJCircleProgressView.h
//  SmartWatch
//
//  Created by zwj on 2022/11/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


typedef void(^CompletionBlock)(void);

@interface WJCircleProgressView : UIView
@property (nonatomic, assign) CGFloat circleRadius;  //背景圆半径
@property (nonatomic, assign) CGFloat circleBorderWidth; //背景圆线条宽度
@property (nonatomic, strong) UIColor *circleColor; //背景圆颜色

@property (nonatomic, strong) UIColor *progressColor; //进度条颜色

@property (nonatomic, assign) CGFloat pointRadius;  //小圆点半径
@property (nonatomic, assign) CGFloat pointBorderWidth;  //小圆点边框宽度
@property (nonatomic, strong) UIColor *pointColor;  //小圆点颜色
@property (nonatomic, strong) UIColor *pointBorderColor; //小圆点边框色

@property (nonatomic, assign) CGFloat curProgress;  //当前进度值(0~1)

/**
 更新进度动画

 @param progress 更新后的进度值
 @param duration 动画时间
 @param completion 动画结束回调
 */
- (void)updateProgress:(CGFloat)progress duration:(NSTimeInterval)duration completion:(CompletionBlock)completion;

@end


NS_ASSUME_NONNULL_END
